package org.jeecg.modules.productionLine.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.productionLine.entity.ProductionLine;
import org.jeecg.modules.productionLine.mapper.ProductionLineMapper;
import org.jeecg.modules.productionLine.service.IProductionLineService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 生产线
 * @Author: jeecg-boot
 * @Date:   2023-08-04
 * @Version: V1.0
 */
@Service
public class ProductionLineServiceImpl extends ServiceImpl<ProductionLineMapper, ProductionLine> implements IProductionLineService {

    @Override
    public List<ProductionLine> getProductionLineByProduct(String product) {
        QueryWrapper<ProductionLine> wrapper = new QueryWrapper<>();
        wrapper.eq("product", product);
        return baseMapper.selectList(wrapper);
    }

}
